package com.sc.nft.service;

import com.sc.nft.entity.ReportOverview;
import com.sc.nft.entity.dto.ReportSaveDTO;
import com.sc.nft.entity.vo.ReportOverviewVO;

import java.util.List;

/**
 * 后台报表总览(ReportOverview)表服务接口
 *
 * @author wwc
 * @since 2023-04-13 14:43:35
 */
public interface ReportOverviewService {

    /**
     * 保存
     *
     * @param reportSaveDTO
     * @return
     */
    Boolean save(ReportSaveDTO reportSaveDTO);

    /**
     * 批量保存
     *
     * @param reportSaves
     * @return
     */
    Boolean saveBath(List<ReportSaveDTO> reportSaves);

    /**
     * 批量保存
     *
     * @param reportSaves
     * @return
     */
    Boolean saveBathEntity(List<ReportOverview> reportSaves);

    /**
     * 根据天数和类型获取对应多少天前的数据
     *
     * @param day
     * @return
     */
    List<ReportOverviewVO> obtainTheDataOfThePreviousDaysBasedOnTheDaysAndTypes(Integer day,List<Integer>codes);

}
